home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / include / gtk-2.0 / gtk / gtkfilechooserbutton.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-04-25  |  3.3 KB  |  89 lines

  1. /* GTK+: gtkfilechooserbutton.h
  2.  * 
  3.  * Copyright (c) 2004 James M. Cape <jcape@ignore-your.tv>
  4.  *
  5.  * This library is free software; you can redistribute it and/or
  6.  * modify it under the terms of the GNU Library General Public
  7.  * License as published by the Free Software Foundation; either
  8.  * version 2 of the License, or (at your option) any later version.
  9.  *
  10.  * This library is distributed in the hope that it will be useful,
  11.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.     See the GNU
  13.  * Library General Public License for more details.
  14.  *
  15.  * You should have received a copy of the GNU Library General Public
  16.  * License along with this library; if not, write to the
  17.  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  18.  * Boston, MA 02111-1307, USA.
  19.  */
  20.  
  21. #ifndef __GTK_FILE_CHOOSER_BUTTON_H__
  22. #define __GTK_FILE_CHOOSER_BUTTON_H__
  23.  
  24. #include <gtk/gtkhbox.h>
  25. #include <gtk/gtkfilechooser.h>
  26.  
  27. G_BEGIN_DECLS
  28.  
  29.  
  30. #define GTK_TYPE_FILE_CHOOSER_BUTTON \
  31.   (gtk_file_chooser_button_get_type ())
  32. #define GTK_FILE_CHOOSER_BUTTON(object) \
  33.   (G_TYPE_CHECK_INSTANCE_CAST ((object), GTK_TYPE_FILE_CHOOSER_BUTTON, GtkFileChooserButton))
  34. #define GTK_FILE_CHOOSER_BUTTON_CLASS(klass) \
  35.   (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_FILE_CHOOSER_BUTTON, GtkFileChooserButtonClass))
  36. #define GTK_IS_FILE_CHOOSER_BUTTON(object) \
  37.   (G_TYPE_CHECK_INSTANCE_TYPE ((object), GTK_TYPE_FILE_CHOOSER_BUTTON))
  38. #define GTK_IS_FILE_CHOOSER_BUTTON_CLASS(klass) \
  39.   (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_FILE_CHOOSER_BUTTON))
  40. #define GTK_FILE_CHOOSER_BUTTON_GET_CLASS(object) \
  41.   (G_TYPE_INSTANCE_GET_CLASS ((object), GTK_TYPE_FILE_CHOOSER_BUTTON, GtkFileChooserButtonClass))
  42.  
  43.  
  44. typedef struct _GtkFileChooserButton GtkFileChooserButton;
  45. typedef struct _GtkFileChooserButtonPrivate GtkFileChooserButtonPrivate;
  46. typedef struct _GtkFileChooserButtonClass GtkFileChooserButtonClass;
  47.  
  48. struct _GtkFileChooserButton
  49. {
  50.   /*< private >*/
  51.   GtkHBox parent;
  52.  
  53.   GtkFileChooserButtonPrivate *priv;
  54. };
  55.  
  56. struct _GtkFileChooserButtonClass
  57. {
  58.   /*< private >*/
  59.   GtkHBoxClass parent_class;
  60.  
  61.   void (*__gtk_reserved1);
  62.   void (*__gtk_reserved2);
  63.   void (*__gtk_reserved3);
  64.   void (*__gtk_reserved4);
  65.   void (*__gtk_reserved5);
  66.   void (*__gtk_reserved6);
  67.   void (*__gtk_reserved7);
  68.   void (*__gtk_reserved8);
  69. };
  70.  
  71.  
  72. GType                 gtk_file_chooser_button_get_type         (void) G_GNUC_CONST;
  73. GtkWidget *           gtk_file_chooser_button_new              (const gchar          *title,
  74.                                 GtkFileChooserAction  action);
  75. GtkWidget *           gtk_file_chooser_button_new_with_backend (const gchar          *title,
  76.                                 GtkFileChooserAction  action,
  77.                                 const gchar          *backend);
  78. GtkWidget *           gtk_file_chooser_button_new_with_dialog  (GtkWidget            *dialog);
  79. G_CONST_RETURN gchar *gtk_file_chooser_button_get_title        (GtkFileChooserButton *button);
  80. void                  gtk_file_chooser_button_set_title        (GtkFileChooserButton *button,
  81.                                 const gchar          *title);
  82. gint                  gtk_file_chooser_button_get_width_chars  (GtkFileChooserButton *button);
  83. void                  gtk_file_chooser_button_set_width_chars  (GtkFileChooserButton *button,
  84.                                 gint                  n_chars);
  85.  
  86. G_END_DECLS
  87.  
  88. #endif /* !__GTK_FILE_CHOOSER_BUTTON_H__ */
  89.